package com.bci.pwtz.service;

import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.CompanyUserAudit;

public interface CompanyUserAuditService
{
/**
 * 添加单位申请
 * 一句话描述 <br/>
 * <p>Description: TODO(详细描述) 
 * <br/>
 * <p>Author: Administrator<br/>
 * <p>Date: 2014年9月26日-上午11:40:23<br/>
 * <p>
 * @return
 * @throws PwtzDatabaseException   
 *
 */
public CompanyUserAudit add(CompanyUserAudit companyUserAudit) throws PwtzDatabaseException;
/**
 *  修改单位申请
 * 一句话描述 <br/>
 * <p>Description: TODO(详细描述) 
 * <br/>
 * <p>Author: Administrator<br/>
 * <p>Date: 2014年9月26日-上午11:40:28<br/>
 * <p>
 * @param companyUserAudit
 * @return
 * @throws PwtzDatabaseException   
 *
 */
public int update(CompanyUserAudit companyUserAudit)throws PwtzDatabaseException;
/**
 * 审核单位申请
 * 一句话描述 <br/>
 * <p>Description: TODO(详细描述) 
 * <br/>
 * <p>Author: Administrator<br/>
 * <p>Date: 2014年9月26日-下午2:28:07<br/>
 * <p>
 * @param companyUserAuditId
 * @param result
 * @return
 * @throws PwtzDatabaseException   
 *
 */
public int check(Long companyUserAuditId,int result)throws PwtzDatabaseException;

public void updateExpireStatus(int auditValid) throws PwtzDatabaseException;

public int selectByUserId(Long userid,Long companyid) throws PwtzDatabaseException;

public CompanyUserAudit selectCompanyUserAuditByUserId(Long userid,Long companyid)throws PwtzDatabaseException;

CompanyUserAudit load(Long auditId)throws PwtzDatabaseException;

public CompanyUserAudit selectCompanyUserAuditByAuditId(Long auditId) throws PwtzDatabaseException;

public int delete(Long auditId) throws PwtzDatabaseException;
}
